package com.atguigu.srb.core.service;

import com.atguigu.srb.core.pojo.entity.Borrower;
import com.atguigu.srb.core.pojo.vo.ApprovalFormVO;
import com.atguigu.srb.core.pojo.vo.BorrowerDetailVO;
import com.atguigu.srb.core.pojo.vo.BorrowerVO;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 借款人 服务类
 * </p>
 *
 * @author Atguigu
 * @since 2023-01-04
 */
public interface BorrowerService extends IService<Borrower> {

    void saveBorrower(BorrowerVO borrowerVO, String token);

    Integer getBorrowerStatus(String token);

    Page<Borrower> listPage(Integer pageNum, Integer pageSize, String keyword);

    BorrowerDetailVO getBorrowerDetailById(String id);

    void approval(ApprovalFormVO approvalFormVO);
}
